package com.ruoyi.datastatistics.service;

import java.util.List;
import java.util.Map;

import com.ruoyi.datastatistics.domain.ElectricityTerminalsFreezeXb;
import com.baomidou.mybatisplus.extension.service.IService;
/**
 * 电冻结数据（设备维度）Service接口
 *
 * @author gdqt
 * @date 2025-03-10
 */
public interface IElectricityTerminalsFreezeXbService extends IService<ElectricityTerminalsFreezeXb>
{
    /**
     * 查询电冻结数据（设备维度）
     *
     * @param id 电冻结数据（设备维度）主键
     * @return 电冻结数据（设备维度）
     */
    public ElectricityTerminalsFreezeXb selectElectricityTerminalsFreezeXbById(Long id);

    /**
     * 查询电冻结数据（设备维度）列表
     *
     * @param electricityTerminalsFreezeXb 电冻结数据（设备维度）
     * @return 电冻结数据（设备维度）集合
     */
    public List<ElectricityTerminalsFreezeXb> selectElectricityTerminalsFreezeXbList(ElectricityTerminalsFreezeXb electricityTerminalsFreezeXb);

    /**
     * 新增电冻结数据（设备维度）
     *
     * @param electricityTerminalsFreezeXb 电冻结数据（设备维度）
     * @return 结果
     */
    public int insertElectricityTerminalsFreezeXb(ElectricityTerminalsFreezeXb electricityTerminalsFreezeXb);

    /**
     * 修改电冻结数据（设备维度）
     *
     * @param electricityTerminalsFreezeXb 电冻结数据（设备维度）
     * @return 结果
     */
    public int updateElectricityTerminalsFreezeXb(ElectricityTerminalsFreezeXb electricityTerminalsFreezeXb);

    /**
     * 批量删除电冻结数据（设备维度）
     *
     * @param ids 需要删除的电冻结数据（设备维度）主键集合
     * @return 结果
     */
    public int deleteElectricityTerminalsFreezeXbByIds(Long[] ids);

    /**
     * 删除电冻结数据（设备维度）信息
     *
     * @param id 电冻结数据（设备维度）主键
     * @return 结果
     */
    public int deleteElectricityTerminalsFreezeXbById(Long id);

    Map<String, Object> getTopFlowList();

    int insertElectricityTerminalsFreezeXbForAll(String frozen_type, String freezeTime);

    int insertElectricityTerminalsFreezeXbForPhase(String frequencyType, String freezeTime, String userId,String departureTime);
}
